import pygame
from pygame.locals import *

pygame.init()#初始化
#创建窗口，设置窗口大小
screen = pygame.display.set_mode((480,600))
plane = pygame.image.load('编程猫跑步2.png')
x = 100
y = 200
running = True
while running:
    screen.blit(plane, (x, y))
    pygame.display.flip()
    for event in pygame.event.get():
        if event.type == pygame.QUIT:
            running == False
        elif event.type == pygame.KEYDOWN:
            if event.key == pygame.K_ESCAPE:
                running == False
pygame.quit()
